<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <h:form id="form" acceptcharset="utf-8">
                <p:growl id="msg" life="3000"/>
                <h2>Editar Categoria</h2>
                <p:panel  styleClass="container_24 clearfix " style="background: none; border: none;">
                    <p class="subtitle">Dados Categoria</p>
                    
                    <p:outputLabel value="Categoria :" styleClass="grid_3"/>
                        <p:inputText   value="#{managerEditCategory.categoryCrud.name}" styleClass="grid_18"/>
                    <br/>
                    <div class="clear"/>
                    <div class="buttonAction">
                        <p:commandButton value="Atualizar" icon="ui-icon-document"   styleClass="ui-priority-primary"
                                          actionListener="#{managerEditCategory.updateCategory()}" update="msg, @form"/>
                        <p:commandButton value="Cancelar" icon="ui-icon-close" 
                                         actionListener="#{managerRedirect.redirect('viewCategory.xhtml')}" immediate="true"/>
                    </div>
                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>

</html>


